/* 基础样式 */

ul {
    padding: 0;
}

li {
    list-style: none;
}

.clearfix {
    // height:1%;
    &:after {
        content: ".";
        display: block;
        height: 0;
        clear: both;
        visibility: hidden;
    }
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.navbar,
.toolbar {
    i {
        line-height: 40px;
    }
}

.tabbar {
    i {
        &.icon {
            height: auto;
        }
    }
}

%ellipsis {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

@mixin ellipsis($n:1) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: $n;
    overflow: hidden;
}


/* 公用样式 */

.i-with-badge {
    position: relative;
    text-align: center;
    .badge {
        position: absolute;
        left: 50%;
        top: 6px;
        margin-left: 0 !important;
        height: 14px;
        line-height: 14px;
        font-size: 12px;
    }
}


/* 默认图标大小 */

.fa {
    font-size: 25px;
}

.self-card {
    margin: 0 0 10px 0;
    border-radius: 0;
    .card-header {
        &:after {
            display: none;
        }
    }
    .card-footer {
        &:before {
            display: none;
        }
    }
}

.img-fit {
    width: 100%;
}

.toolbar {
    .fa {
        font-size: 30px;
    }
    span {
        line-height: 1;
        font-size: 12px;
    }
}

.main-toolbar {
    i {
        line-height: 1;
    }
    .btm-btn-add {
        i {
            font-size: 40px;
        }
    }

    .link {
        &.on {
            color: #e51c23;
        }
    }
}

.comment-toolbar {
    .toolbar-inner {
        padding: 0 15px;
    }
    .edit-comment {
        display: flex;
        -webkit-flex: 0.5;
        flex: 0.5;
        padding: 2px 5px 0;
        border: 1px solid #f00;
        background: #fff;
        .icon {
            -webkit-flex: 0.1;
            flex: 0.1;
            line-height: 1;
        }
        .item-input {
            -webkit-flex: 0.9;
            flex: 0.9;
            height: 100%;
        }
        input {
            height: 100%;
            border: none;
            background: none;
            font-size: 14px;
        }
    }
}


/* 发布页（弹层） */

#new {
    .new-operation {
        position: absolute;
        bottom: 64px;
        width: 100%;
        text-align: center;
        i {
            display: block;
            margin-bottom: 2px;
        }
    }
    .btn-close {
        i {
            margin-top: 10px;
            font-size: 40px;
        }
    }
}


/* 评论列表 */

.comment-list {
    .tag {
        width: 120px;
        height: 25px;
        line-height: 25px;
        margin-top: 10px;
        text-align: center;
        color: #fff;
    }
    .tag-friend {
        background: #e51c23;
    }
    .tag-internet {
        background: #ff9800;
    }
    ul {
        padding: 10px 15px 0;
    }
    .hd {
        position: relative;
        margin-bottom: 10px;
        font-size: 12px;
        word-break: break-all;
        z-index: 1;
        .icon {
            font-size: 18px;
        }
    }
    .avatar {
        float: left;
        position: relative;
        width: 50px;
        height: 40px;
        margin-right: 10px;
        z-index: 1;

        .img-wrap {
            overflow: hidden;
        }
        img {
            width: 100%;
            min-height: 100%;
        }
        .icon {
            position: absolute;
            top: -5px;
            right: -5px;
        }
    }
    .user-info {
        padding-left: 63px;
        color: #999;
    }
    .role {
        margin-right: 5px;
        .icon {
            color: #999;
        }
    }
    .floor {
        float: right;
        margin-left: 5px;
    }
    .bd {
        margin-bottom: 5px;
        text-align: justify;
        color: #333;
    }
    .bd,
    .ft {
        margin-left: 63px;
    }
    .ft {
        padding-bottom: 10px;
        color: #999;
        font-size: 12px;
        .date {
            float: left;
        }
        .icon {
            float: right;
            font-size: 12px;
            &:before {
                margin-right: 5px;
                font-size: 15px;
            }
        }
    }
    .reply-list {
        padding-bottom: 10px;
        background: #ddd;
        overflow: hidden;
        ul {
            padding: 10px 15px 0 40px;
            margin-bottom: 0;
            .bd {
                padding: 5px 10px;
                background: #f2eadc;
            }
            .ft {
                .date {
                    margin-right: 15px;
                }
                .icon {
                    float: left;
                }
            }
        }
        .more {
            float: right;
            margin-right: 15px;
        }
    }
    .reply-line {
        border-top: 1px dotted #999;
    }
    .load-more {
        text-align: center;
    }
}


/* popover改造为通用弹窗 */

.popover.custom-modal {
    top: 35% !important;
    left: 5% !important;
    width: 90%;
    .popover-angle {
        display: none;
    }
}


/* 编辑评论页角色扮演和输入框样式 */

.edit-comment-common {
    width: 100%;
    overflow: hidden;
    .list-block {
        margin: 0;
    }
    .select-role {
        position: relative;
        width: 200%;
        height: 44px;
        white-space: nowrap;
        overflow: hidden;
        background: #fff;
        &.on {
            ul {
                left: -50%;
            }
        }
        ul {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 44px;
            transition: left 0.5s;
        }
        li {
            width: 50%;
            display: inline-block;
        }
        .item-inner {
            -webkit-justify-content: left;
            justify-content: left;
            font-size: 14px;
        }
        .guide {
            color: #ff3b30;
        }
        .icon-role {
            .icon {
                color: #ff3b30;
            }
        }
        .icon {
            font-size: 22px;
            // margin-right: 5px;
        }
        .btn-back {
            // display: inline-block;
            // width: 40px;
            -webkit-flex: 1;
            flex: 1;
            height: 100%;
            line-height: 30px;
            margin-left: -15px;
            text-align: center;
            border-right: 1px solid #ccc;
            .icon {
                font-size: 15px;
                color: #bbb;
            }
        }
        .btn-add {
            -webkit-flex: 1;
            flex: 1;
            text-align: center;
            .icon {
                font-size: 30px;
                color: #bbb;
            }
        }
        .item-input {
            -webkit-flex: 5;
            flex: 5;
        }
        input {
            padding: 0 5px;
            height: 25px;
            border: 1px solid #bbb;
            font-size: 14px;
        }
    }
    textarea {
        font-size: 14px;
    }
    .comment-box {
        position: relative;
        .item-inner {
            position: relative;
            padding-bottom: 30px;
        }
        .char-limit {
            position: absolute;
            bottom: 5px;
            right: 15px;
            font-size: 12px;
            color: #ccc;
        }
    }
}


/* 圈子推送 */

.share-to-circle {
    .picker-modal-inner {
        position: relative;
        margin: 0 15px;
    }
    p {
        margin: 20px 0 30px;
    }
    li {
        display: inline-block;
        vertical-align: middle;
        margin: 0 5px 15px;
        .button {
            min-width: 70px;
            height: 25px;
            line-height: 25px;
            font-size: 12px;
            background: #aaa;
            &.on,
            &:active,
            &:hover {
                background: #e51c23 !important;
            }
        }
    }
    .btn-done {
        position: absolute;
        bottom: 35px;
        width: 100%;
        padding: 0;
        border-color: #999;
        color: #666;
    }
    .icon {
        display: inline-block;
        font-size: 20px;
        margin: 0 0 3px !important;
    }
}

/*头像列表 */
.avatar-list {
    padding: 10px;

    .col-auto {
        text-align: center;
    }

    .img-wrap{
        height: 65px;
        border-radius: 5px;
        overflow: hidden;
    }

    img {
        display: block;
        width: 100%;
        height: 100%;
    }

    p {
        margin: 8px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-add {
        display: block;
        height: 100%;
        text-align: center;

        .icon {
            display: block;
            line-height: 65px;
            font-size: 60px;
            color: #ccc;
        }
    }
}

/* 相册列表 */
.img-album {
    .row {
        padding-top: 3px;
        .col-auto {
            padding: 0 2px;
        }
    }

    .img-wrap {
        position: relative;
        height: 85px;

        .icon {
            position: absolute;
            right: 5px;
            top: 5px;
        }
    }

    img {
        width: 100%;
        min-height: 100%;
    }
}

/* 通讯录列表 */
.contact-list {
    .item-media {
        .avatar {
            width: 54px;
            height: 54px;
            overflow: hidden;
            border-radius: 5px;
        }
        img {
            width: 100%;
            min-height: 100%;
        }

        .icon {
            margin-right: 10px;
        }
    }
}

/* 字母列表 */
.alpha-list {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 5px;
    width: 20px;
    z-index: 1000;
    overflow: hidden;

    &:before {
        content: "";
        display: inline-block;
        vertical-align: middle;
        width: 1px;
        height: 100%;
    }

    ul {
        display: inline-block;
        vertical-align: middle;
    }

    li {
        font-size: 14px;
        text-align: center;
    }
}

/* 新闻编辑 */
.news-edit {
    form {
        margin-top: 0;
    }
}

/* 查看更多 */
.load-more {
    text-align: center;
}